﻿using Ease.EaseDialog.Runtime.DataState;
using Ease.EaseNode.Runtime;
using UnityEditor.Experimental.GraphView;

namespace Ease.EaseDialog.Runtime.Data
{
    public partial class DialogData2
    {
#if UNITY_EDITOR
        public override string Tip => $"选择:{id}";

        protected override void OnNodeInfoInit()
        {
            NodeInfo.InputConfigs.Clear();
            NodeInfo.InputConfigs.Add(new PortConfig() {id = 0, capacity = Port.Capacity.Single, portName = "input"});
            NodeInfo.OutputConfigs.Clear();
            NodeInfo.OutputConfigs.Add(new PortConfig() {id = 0, capacity = Port.Capacity.Single, portName = "是"});
            NodeInfo.OutputConfigs.Add(new PortConfig() {id = 1, capacity = Port.Capacity.Single, portName = "否"});
        }

        protected override IEaseNodeDataState OnCreateState()
        {
            return new DialogDataState2(this);
        }

        protected override void OnNodeInfoChange()
        {
        }
#endif
    }
}